# coding: utf-8

from common.stats import MG_BIGBANG_COLL as mg

_VERSION = 38  # for 28 彩金, 老版本18彩金


def check_version(user_id):
    # true means new version
    user_info = mg.user_stats.find_one({'_id': user_id})
    return int(user_info.get('cvc', 0)) > _VERSION
